package com.ihrm.employee.mapper;

import com.ihrm.domain.employee.EmployeeArchive;
import com.ihrm.domain.employee.EmployeeArchiveExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface EmployeeArchiveMapper {
    int countByExample(EmployeeArchiveExample example);

    int deleteByExample(EmployeeArchiveExample example);

    int deleteByPrimaryKey(String id);

    int insert(EmployeeArchive record);

    int insertSelective(EmployeeArchive record);

    List<EmployeeArchive> selectByExample(EmployeeArchiveExample example);

    EmployeeArchive selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") EmployeeArchive record, @Param("example") EmployeeArchiveExample example);

    int updateByExample(@Param("record") EmployeeArchive record, @Param("example") EmployeeArchiveExample example);

    int updateByPrimaryKeySelective(EmployeeArchive record);

    int updateByPrimaryKey(EmployeeArchive record);

    EmployeeArchive findLast(@Param("companyId") String companyId, @Param("month") String month);
}